package com.lailai.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 版本特性实体类
 * 对应数据库表: version_features
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("version_features")
public class VersionFeature {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 版本ID
     */
    @TableField("version_id")
    @NotNull(message = "版本ID不能为空")
    private Long versionId;

    /**
     * 特性名称
     */
    @TableField("feature_name")
    @NotBlank(message = "特性名称不能为空")
    private String featureName;
    
    /**
     * 描述
     */
    @TableField("description")
    private String description;

    /**
     * 创建时间
     */
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
}
